package com.vehicle_information_management_system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.vehicle_information_management_system.dto.PeopleCount;
import com.vehicle_information_management_system.pojo.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
* @author huawei
* @description 针对表【user_info】的数据库操作Service
* @createDate 2025-02-28 13:48:03
*/
public interface UserInfoService extends IService<UserInfo> {

    UserInfo userLogin(String username,String password);

    void addUser(UserInfo userInfo);

    void delUser(Integer id);

    void updateUser(UserInfo userInfo);
    IPage<UserInfo> getAllUser(Integer pageNum,Integer pageSize,String search);

    List<UserInfo> getUserInfo();

    UserInfo getUserInfoById(Integer id);

    List<PeopleCount> getPeopleCountByDepartment();

}
